package com.wzx.user.business.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wzx.user.pojo.shop.dto.ReleaseDynamicDto;
import com.wzx.user.pojo.shop.pojo.ReleaseDynamic;
import com.wzx.user.pojo.shop.vo.QueryReleaseByPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/2/16 - 19:09
 * @description 标题
 */
@Mapper
public interface ReleaseDynamicMapper extends BaseMapper<ReleaseDynamic> {
    Page<ReleaseDynamic> queryByTypePage(@Param("typeId") Integer typeId,
                                         @Param("state") String state,
                                         @Param("releaseUserId") Integer releaseUserId,
                                         @Param("isReleaseUser") Integer isReleaseUser,
                                         Page<ReleaseDynamic> pages);

    List<ReleaseDynamicDto> queryByOrder(QueryReleaseByPage queryReleaseByPage);

    ReleaseDynamicDto queryByID(@Param("releaseDynamicId")Integer releaseDynamicId);
}
